package job;
/**
 * 1. 属性：小型车车长标准值：4295，中型车车长标准值：5070。
     2. 定义判断车型方法
        1. 判断小型车：小于小型车车长标准值
        2. 判断大型车：大于中型车车长标准值
        3. 判断中型车：大于小型车车长标准值并且小于等于中型车车长标准值
 *
 */
public class SUV extends Auto{
	
	private double minLength = 4295;
	private double midLength = 5070;
	
	public SUV() {
		super();
		
	}
	
	public SUV(double length, double price) {
		super("SUV", length, price);	
	}
	
	public boolean minCar(){
		
		return getLength() < minLength;
	}

	public boolean maxCar(){
		
		return getLength() > midLength;
	}
	
	public boolean midCar(){
		
		return getLength() > minLength && getLength() <= midLength;
	}

	public void show(){
		System.out.println("品牌" + getType());
		System.out.println("身长" + getLength());
		System.out.println("价格" + getPrice());
	}
	
	
	
}
